package com.chongbangbang.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * recommamd_objecct中的评论
 * </p>
 *
 * @author TP
 * @since 2022-03-19 15:23:55
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("object_comment")
@ApiModel(value = "ObjectComment对象", description = "recommamd_objecct中的评论")
public class ObjectComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("object_comment表的自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("对应推荐物品表的主键id")
    @TableField("recommend_object_id")
    private Integer recommendObjectId;

    @ApiModelProperty("对应评论用户的id")
    @TableField("comment_user_id")
    private String commentUserId;

    @ApiModelProperty("评论人名字")
    @TableField("comment_usr_name")
    private String commentUsrName;

    @ApiModelProperty("评论人头像")
    @TableField("comment_usr_avatar")
    private String commentUsrAvatar;

    @ApiModelProperty("评论内容")
    @TableField("`comment`")
    private String comment;

    @ApiModelProperty("父评论ID")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty("创建时间")
    @TableField(value = "gmt_create", fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("修改时间")
    @TableField(value = "gmt_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @ApiModelProperty("逻辑删除")
    @TableField("`delete`")
    @TableLogic
    private Integer delete;


}
